<?php
$form = $this->beginWidget('GxActiveForm', array(
    'action' => Yii::app()->createUrl($this->route),
    'method' => 'get',
        ));
?>

<div class="row buttons" >
    From:<?php
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
    'name' => 'from_date',
    'options' => array(
        'dateFormat' => 'yy-mm-dd',
        'changeMonth' => true,
        'changeYear' => true,
        'showAnim' => 'slide', //'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
    ),
    'htmlOptions' => array(
        'class' => 'input-small',
    ),
));
?>  To:<?php
    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'name' => 'to_date',
        'options' => array(
            'dateFormat' => 'yy-mm-dd',
            'changeMonth' => true,
            'changeYear' => true,
            'showAnim' => 'slide', //'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
        ),
        'htmlOptions' => array(
            'class' => 'input-small',
        ),
    ));
?>
    <?php echo GxHtml::button(Yii::t('app', 'Export to Excel (xls)'), array('id' => 'exportToExcel')); ?>
    <div id="errorMsg" class="errorMessage"></div>
</div>
<?php $this->endWidget(); ?>